<template>
	<view class="noticeLayout">
		<view>
			<view class="avatar">
				<image src="../../static/images/manao.jpeg" mode="aspectFill"></image>
			</view>
			<view class="avatar" style="margin-top: 20px;">
				<view>版本号 3.27.65-65123</view>
			</view>
		</view>

		<view class="content" >
			<view class="content-item" v-for="item in items">
				<view>{{item.name}}</view>
				<view>{{item.uname}}</view>
			</view>
			<view class="content-item1">
				<view>微信公众号</view>
				<view>tuku</view>
			</view>
		</view>

		<view class="content1">
			<view class="content-item">
				<view>更新版本</view>
				<view>3.27.65-65123</view>
			</view>
			<view class="content-item1">
				<view>隐私策略</view>
				<view>用户隐私策略</view>
			</view>
		</view>
	</view>
</template>

<script setup>
import { ref } from "vue";
import {onLoad} from "@dcloudio/uni-app"
import {apiNoticeDetail} from '@/api/apis.js'


const detail = ref({})
let noticeId
onLoad((e)=>{
	noticeId = e.id
	getNoticeDetail();
})


const getNoticeDetail = ()=>{
	apiNoticeDetail({id:noticeId}).then(res=>{
		detail.value = res.data
		console.log(res);
	})
}
const items=ref([
	{name:'图库QQ群',uname:'378189654'},
	{name:'问题反馈群',uname:'772516465'},
	{name:'邮箱',uname:'tuku@dwacsw.com'},
	{name:'新浪微博',uname:'@tuku'}
])

</script>

<style lang="scss" scoped>
	.noticeLayout{
		width: 100%;
		height: 1000px;
		background-color: #f5f5f5;
	}

	.avatar{
		display: flex;
		justify-content: center;

	}
	.avatar image{
		width: 100px;
		height: 100px;
		border-radius: 50%;

	}
	.content{
		height: 200px;
		border-radius: 10rpx;
		width: 90%;
		border: 1px solid #ccc;
		margin: 0 auto;
		margin-top: 20px;
		background-color: white;
	}
	.content1{
		height: 80px;
		border-radius: 10rpx;
		width: 90%;
		border: 1px solid #ccc;
		margin: 0 auto;
		margin-top: 20px;
		background-color: white;
	}
	.content-item{
		display: flex;
		justify-content: space-between;
		border-bottom: 1px solid #ccc;
		height: 40px;
		align-items: center;
		margin-left: 8px;
		margin-right: 8px;
	}
	.content-item1{
		display: flex;
		justify-content: space-between;
		height: 40px;
		align-items: center;
		margin-left: 8px;
			margin-right: 8px;
	}
</style>
